package cn.tedu.coolsharkmall.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class AlbumAddNewDTO implements Serializable {

    @ApiModelProperty(value = "相册名称", required = true, example = "演示数据001")
    @NotNull(message = "必须填写相册名称")
    private String name;
    @ApiModelProperty(value = "相册简介", required = true, example = "演示数据001的简介")
    @NotNull(message = "必须填写相册简介!")
    private String description;
    @ApiModelProperty(value = "排序序号 取值必须在[0-255]区间", required = true, example = "100")
    @NotNull(message = "必须填写排序序号")
    @Range(max = 255, message = "排序序号必须是[0, 255] 区间的数值!")
    private Integer sort;

}
